// require('./db/init')

const express = require('express')

const app = express()


const path = require('path')
// 首页静态伺服
const stative = path.resolve(__dirname,'./public/home')
app.use(express.static(stative))
// 心情说说静态伺服
const moodtive = path.resolve(__dirname,'./public/mood')
app.use('/mood',express.static(moodtive))



app.use('/blog',require('./router/blog_home'))





// app.get('/log',(req,res)=>{
//     res.send({
//         data:'123'
//     })
// })



app.listen(8080,()=>{
    console.log('http://localhost:8080');
})
